import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
import 'element-theme-default'
import registerServiceWorker from './registerServiceWorker'
import messages from './language/index'
import * as apis from './apis/index'
import {lang} from './common/js/index'

lang()
React.Component.prototype.$lang = messages[window.lang]
React.Component.prototype.$ajax = apis.default
ReactDOM.render(
  <App />, document.getElementById('root'));
registerServiceWorker();
